package com.xy.xymall.auth.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author XY
 * @version 1.0.0
 * @ClassName MyWebConfig.java
 * @createTime 2020年10月14日 19:59:00
 * mvc配置类
 */
@Configuration
public class MyWebConfig implements WebMvcConfigurer {

    /**
     * @Author XY
     * @Date 2020/10/14 20:01
     * @Param [registry]
     * @Return void
     * 视图映射配置
     */
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        //进入登录页的时候还需要处理逻辑
//        registry.addViewController("/login.html").setViewName("login");
        registry.addViewController("/reg.html").setViewName("reg");
    }
}
